package com.future.hair.server.custom.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CommentVo对象", description="")
public class CommentVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "worksId(作品id)")
    private Integer worksId;

    @ApiModelProperty(value = "userId(用户id)")
    private Integer userId;

    @ApiModelProperty(value = "comment(内容)")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "userId(用户id)")
    private String userName;

    @ApiModelProperty(value = "userId(用户id)")
    private String avatar;
}
